package com.pauldada.sakurabbs.services;

import com.pauldada.sakurabbs.entities.WebSiteInfo;

import java.util.List;
import java.util.Optional;

//帖子动态信息Service接口
public interface WebSiteInfoService {


	//添加或者保存帖子动态信息
    void save(WebSiteInfo info);
	
	//根据id删除帖子动态信息
    void delete(Integer id);
	
	//根据id查询实体
    Optional<WebSiteInfo> findById(Integer id);
	
	//根据条件分页查询帖子动态信息
    List<WebSiteInfo> list(WebSiteInfo info, Integer page, Integer pageSize);
	
	//获取总记录数
    Long getCount(WebSiteInfo info);
	
	//根据帖子id查询动态信息
    List<WebSiteInfo> getByFilmId(Integer filmId);
	
	//根据帖子网站id查询动态信息
    List<WebSiteInfo> getByWebSiteId(Integer webSiteId);
}
